package com.jxt.app.dao.extend;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.jxt.app.dao.base.ApnewsDAOImpl;
import com.jxt.app.dao.base.AproleDAOImpl;
import com.jxt.app.entity.ApreplyExample;
import com.jxt.app.entity.base.Apnews;
import com.jxt.app.entity.base.ApnewsExample;
import com.jxt.app.entity.base.Aprole;
import com.jxt.app.entity.base.AproleExample;

public class AproleExtendsDAOImpl extends  AproleDAOImpl implements AproleExtendsDAO {

	@Override
	public int findCountByExample(AproleExample inparam) {
		Map parms = getExampleParms(inparam);
		Integer count = (Integer)  getSqlMapClientTemplate().queryForObject("Aprole.getCountByDynamic", parms);
        return count;
	}

	@Override
	public List<?> findListByExample(HashMap<String, Object> param) {
		Map parms = getExampleParms((AproleExample)param.get("object"));
		parms.put("page_begin", param.get("page_begin"));
		parms.put("page_end", param.get("page_end"));
		parms.put("page",param.get("page"));
		List<Aprole> list = getSqlMapClientTemplate().queryForList("Aprole.getListByDynamic", parms);
        return list;
	}

}
